import javax.swing.JOptionPane;

public class HelloWorldDialogBox
{
	public static void main(String[] args)
	{
		JOptionPane.showMessageDialog(null, "Hello World!");
		
		String name = JOptionPane.showInputDialog("What's your name? ");
		//JOptionPane.showMessageDialog(null, "Hello " + name + "!");
		System.out.println("Hello " + name + "!");
	}
}
